/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class PrintTemplateConfig {
    @NotNull
    private final String pageSizeType;
    private boolean selected;
    private final boolean supportPdf;
    private final boolean supportWord;
    @NotNull
    private final List<TagConfig> tagConfigs;
    private final int templateId;
    @NotNull
    private final String templateImgSelected;
    @NotNull
    private final String templateImgUnSelected;
    @NotNull
    private final String templateName;
    private final boolean verticalPrint;

    public PrintTemplateConfig(int i2, @NotNull String templateName, @NotNull String templateImgSelected, @NotNull String templateImgUnSelected, @NotNull List<TagConfig> tagConfigs, boolean z, boolean z2, boolean z3, @NotNull String pageSizeType, boolean z4) {
        Intrinsics.checkNotNullParameter(templateName, "templateName");
        Intrinsics.checkNotNullParameter(templateImgSelected, "templateImgSelected");
        Intrinsics.checkNotNullParameter(templateImgUnSelected, "templateImgUnSelected");
        Intrinsics.checkNotNullParameter(tagConfigs, "tagConfigs");
        Intrinsics.checkNotNullParameter(pageSizeType, "pageSizeType");
        this.templateId = i2;
        this.templateName = templateName;
        this.templateImgSelected = templateImgSelected;
        this.templateImgUnSelected = templateImgUnSelected;
        this.tagConfigs = tagConfigs;
        this.selected = z;
        this.supportPdf = z2;
        this.supportWord = z3;
        this.pageSizeType = pageSizeType;
        this.verticalPrint = z4;
    }

    public final int component1() {
        return this.templateId;
    }

    public final boolean component10() {
        return this.verticalPrint;
    }

    @NotNull
    public final String component2() {
        return this.templateName;
    }

    @NotNull
    public final String component3() {
        return this.templateImgSelected;
    }

    @NotNull
    public final String component4() {
        return this.templateImgUnSelected;
    }

    @NotNull
    public final List<TagConfig> component5() {
        return this.tagConfigs;
    }

    public final boolean component6() {
        return this.selected;
    }

    public final boolean component7() {
        return this.supportPdf;
    }

    public final boolean component8() {
        return this.supportWord;
    }

    @NotNull
    public final String component9() {
        return this.pageSizeType;
    }

    @NotNull
    public final PrintTemplateConfig copy(int i2, @NotNull String templateName, @NotNull String templateImgSelected, @NotNull String templateImgUnSelected, @NotNull List<TagConfig> tagConfigs, boolean z, boolean z2, boolean z3, @NotNull String pageSizeType, boolean z4) {
        Intrinsics.checkNotNullParameter(templateName, "templateName");
        Intrinsics.checkNotNullParameter(templateImgSelected, "templateImgSelected");
        Intrinsics.checkNotNullParameter(templateImgUnSelected, "templateImgUnSelected");
        Intrinsics.checkNotNullParameter(tagConfigs, "tagConfigs");
        Intrinsics.checkNotNullParameter(pageSizeType, "pageSizeType");
        return new PrintTemplateConfig(i2, templateName, templateImgSelected, templateImgUnSelected, tagConfigs, z, z2, z3, pageSizeType, z4);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof PrintTemplateConfig)) {
            return false;
        }
        PrintTemplateConfig printTemplateConfig = (PrintTemplateConfig) obj;
        return this.templateId == printTemplateConfig.templateId && Intrinsics.areEqual(this.templateName, printTemplateConfig.templateName) && Intrinsics.areEqual(this.templateImgSelected, printTemplateConfig.templateImgSelected) && Intrinsics.areEqual(this.templateImgUnSelected, printTemplateConfig.templateImgUnSelected) && Intrinsics.areEqual(this.tagConfigs, printTemplateConfig.tagConfigs) && this.selected == printTemplateConfig.selected && this.supportPdf == printTemplateConfig.supportPdf && this.supportWord == printTemplateConfig.supportWord && Intrinsics.areEqual(this.pageSizeType, printTemplateConfig.pageSizeType) && this.verticalPrint == printTemplateConfig.verticalPrint;
    }

    @NotNull
    public final String getPageSizeType() {
        return this.pageSizeType;
    }

    public final boolean getSelected() {
        return this.selected;
    }

    public final boolean getSupportPdf() {
        return this.supportPdf;
    }

    public final boolean getSupportWord() {
        return this.supportWord;
    }

    @NotNull
    public final List<TagConfig> getTagConfigs() {
        return this.tagConfigs;
    }

    public final int getTemplateId() {
        return this.templateId;
    }

    @NotNull
    public final String getTemplateImgSelected() {
        return this.templateImgSelected;
    }

    @NotNull
    public final String getTemplateImgUnSelected() {
        return this.templateImgUnSelected;
    }

    @NotNull
    public final String getTemplateName() {
        return this.templateName;
    }

    public final boolean getVerticalPrint() {
        return this.verticalPrint;
    }

    public int hashCode() {
        int hashCode = ((((((((this.templateId * 31) + this.templateName.hashCode()) * 31) + this.templateImgSelected.hashCode()) * 31) + this.templateImgUnSelected.hashCode()) * 31) + this.tagConfigs.hashCode()) * 31;
        boolean z = this.selected;
        int i2 = 1;
        if (z) {
            z = true;
        }
        int i3 = z ? 1 : 0;
        int i4 = z ? 1 : 0;
        int i5 = z ? 1 : 0;
        int i6 = (hashCode + i3) * 31;
        boolean z2 = this.supportPdf;
        if (z2) {
            z2 = true;
        }
        int i7 = z2 ? 1 : 0;
        int i8 = z2 ? 1 : 0;
        int i9 = z2 ? 1 : 0;
        int i10 = (i6 + i7) * 31;
        boolean z3 = this.supportWord;
        if (z3) {
            z3 = true;
        }
        int i11 = z3 ? 1 : 0;
        int i12 = z3 ? 1 : 0;
        int i13 = z3 ? 1 : 0;
        int hashCode2 = (((i10 + i11) * 31) + this.pageSizeType.hashCode()) * 31;
        boolean z4 = this.verticalPrint;
        if (!z4) {
            i2 = z4 ? 1 : 0;
        }
        return hashCode2 + i2;
    }

    public final void setSelected(boolean z) {
        this.selected = z;
    }

    @NotNull
    public String toString() {
        return "PrintTemplateConfig(templateId=" + this.templateId + ", templateName=" + this.templateName + ", templateImgSelected=" + this.templateImgSelected + ", templateImgUnSelected=" + this.templateImgUnSelected + ", tagConfigs=" + this.tagConfigs + ", selected=" + this.selected + ", supportPdf=" + this.supportPdf + ", supportWord=" + this.supportWord + ", pageSizeType=" + this.pageSizeType + ", verticalPrint=" + this.verticalPrint + ')';
    }
}